/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import net.minecraft.entity.EntityLivingBase;
/*    */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class eos/moe/dragoncore/dfa
/*    */ {
/*    */   private String l;
/*    */   private String t;
/*    */   private String d;
/*    */   private String z;
/*    */   private String i;
/*    */   private String w;
/*    */   private String q;
/* 30 */   private List<kba.eos/moe/dragoncore/fia> g = new ArrayList<>();
/*    */ 
/*    */   
/*    */   public eos/moe/dragoncore/dfa(ConfigurationSection configurationSection) {
/* 34 */     this.l = String.valueOf(configurationSection.get("offsetY"));
/* 35 */     this.t = configurationSection.getString("background.path");
/* 36 */     this.d = String.valueOf(configurationSection.get("background.width", Integer.valueOf(0)));
/* 37 */     this.z = String.valueOf(configurationSection.get("background.height", Integer.valueOf(0)));
/*    */     
/* 39 */     this.i = configurationSection.getString("health.path");
/* 40 */     this.w = String.valueOf(configurationSection.get("health.width", Integer.valueOf(0)));
/* 41 */     this.q = String.valueOf(configurationSection.get("health.height", Integer.valueOf(0)));
/*    */     
/* 43 */     ConfigurationSection configurationSection1 = configurationSection.getConfigurationSection("string");
/* 44 */     if (configurationSection1 != null) {
/* 45 */       configurationSection1.getKeys(false).stream().map(configurationSection1::getConfigurationSection).forEach(configurationSection -> this.g.add(new kba.eos/moe/dragoncore/fia(configurationSection)));
/*    */     }
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public double v(EntityLivingBase entityLivingBase) {
/* 52 */     return ra.z(this.l.replace("%height%", String.valueOf(entityLivingBase.field_70131_O)));
/*    */   }
/*    */   
/*    */   public String z() {
/* 56 */     return this.t;
/*    */   }
/*    */   
/*    */   public float t(float f1, float f2) {
/* 60 */     return (float)ra.z(this.d.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*    */   }
/*    */   
/*    */   public float h(float f1, float f2) {
/* 64 */     return (float)ra.z(this.z.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*    */   }
/*    */   
/*    */   public String v() {
/* 68 */     return this.i;
/*    */   }
/*    */ 
/*    */   
/*    */   public float z(float f1, float f2) {
/* 73 */     return (float)ra.z(this.w.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*    */   }
/*    */   
/*    */   public float v(float f1, float f2) {
/* 77 */     return (float)ra.z(this.q.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*    */   }
/*    */   
/*    */   public List<kba.eos/moe/dragoncore/fia> v() {
/* 81 */     return this.g;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\dfa.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */